package com.jtech.together.view.adapter;

import android.support.v4.app.FragmentManager;

import com.jtech.together.view.adapter.base.BaseFragmentPagerAdapter;
import com.jtech.together.view.fragment.base.BaseFragment;

import java.util.List;

/**
 * 首页的pager适配器
 * Created by wuxubaiyang on 2017/5/10.
 */

public class HomePagerAdapter extends BaseFragmentPagerAdapter<BaseFragment> {
    private String[] titles = {"动态", "推荐用户"};

    public HomePagerAdapter(FragmentManager fm, List<BaseFragment> fragments) {
        super(fm, fragments);
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return titles[position];
    }
}